package com.isunland.managesystem.ui;

import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.Fragment;

public class EmployeeLoanActivity extends SingleFragmentActivity {
  private EmployeeLoanListFragment mFragment;

  @Override protected Fragment createFragment() {
    mFragment = new EmployeeLoanListFragment();
    return mFragment;
  }

  @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (resultCode != Activity.RESULT_OK) {
      return;
    }
    if (requestCode == CertificateChooseDialogFragment.REQUEST_ADD_LOAN) {
      mFragment.refresh();
    }

    super.onActivityResult(requestCode, resultCode, data);
  }
}
